<?php
namespace app\zhongcan\validate;

use think\Validate;

class titleValidate extends Validate
{

    protected $rule = [
      'title' => 'require',
      'url'=>'require',
      'part_id'=>'require',
    ];

    protected $message = [
      'title.require'=>'请输入标题',
      'url.require'=>'请输入网页跳转地址',
      'part_id.require'=>'请输入二级链接',
    ];

    protected $scene = [
      'add' =>['title','url','part_id']  ,
      'edit'=>['title','url','part_id']  ,
    ];
}